package com.woniuxy;

import com.woniuxy.feign.UtilFeign;
import org.bouncycastle.crypto.io.MacInputStream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 〈一句话功能简述〉<br>
 * 〈定时器〉
 *
 * @author jia
 * @create 2019/9/29
 * @since 1.0.0
 */
@Component("taskJob")
public class cron {

    @Autowired
    public UtilFeign utilFeign;

    @Scheduled(cron="*/5 * * * * ?")
    public static  void showTime() {
        String phone = "";
        String time = "";
        String good = "";
        utilFeign.sendTime(phone,time,good);
    }

}
